Implementing a LeNet-5 step by step