added recursive binary search to helpers.c