Pre-binary search implementation sync

Backup for large changes to come.  Currently in a working state.