Fixed bugs in mlp.m and mlp_classify.m