add binary-search.js

define binary search in sorted array