1. Added KNN classifier
2. Added DEBUG flags
3. used fastMalloc and fastFree