neural network implementation via multi layer percerptron (mlp) library