Editted alg.cpp, alg.h, updated feat.h and feat.cpp with comments