improve output GUI
update distance calculation in KNN