Design of artificial neural network architecture for handwritten digit recognition on FPGA