modified ckdtree code from scipy and tweeked proj_cross to use new modified code.