Similar Items: FPGA-Based Deep Neural Network Implementation for Handwritten Digit Recognition