A C implementation of binary search and binary index for Ruby arrays