added printTree method to kdtree class; included .gitignore file. misc changes to main.cpp