Artificial Neural Network in hardware