updated mlp algorithms, better file structure

lst: fixed a couple of functions
mlp: simulate and train functions
data types extracted into separate file