fixed back propagation
before putting in the same file
after compressed code into a file
finished the implementation of class sparseencoder. have not guarentee the correctness of implementation. it currently will not crash