MLP and Backpropagation implementation for ANNMS