Finish learnPMCode.m however it seems learning procedure in second layer is not working well