Wrote algorithm for scanNext and scanPrevious methods.
Implemented exposed scanning methods in IMEAdapter.