Made search more readable
Tested merge sort partial change
triple sort prototype