Return to the old implementation without the binary search. In this way the values only have to be iterated through once to find the nearest one.

This reverts commit c5e77ed767533b9f365911d4b99080006e91477b.
Small six to code comment