finallizing binary search
-correcting sorting methods module