Added code to compute knn complex in matlab.
Use min as base of landscape.
Moved mexgateway.cpp