refactored js code for cyclic lists
added files for nearest neighbor question
merge sort working for js