rosalind - binary search on array of integers