Binarysearch

'v' isn't a great name for a variable here, as it's used elsewhere in a different capacity. It would be clearer if this was called 'index'.