Implement median search
Merge branch 'implement-median-search'