added implementation for train using MATLAB neural nets...