added searchAfter and searchBefore with some tests

I needed to browse through the index and wrote these for that purpose - feel free to merge if you will.

(I'm using these to implement $first, $last, $before and $after to NeDB, which will allow efficient browsing through the database without creating a lot of search candidates for each step)