realize artificial neural network using matrix operations.