Implemented binary search
Added a class for basic in-memory index construction