solve problem find square root
mergesort