Reworked the generation of search prefixes for a bounding box to expand by one bit at a time and improved documentation within the function.