Modification to knnJoin. Function is now clear of sparkContext as input. Function now works for vectors of Int and Long