Design of Artificial Neural Network with NN, EGA and its FPGA implementation