Simulations of Artificial Neural Network with Memristive Devices