Hardware Implementation of Artificial Neural Networks