binsearch
binsearch possible overflow fix
cleanup