Added more functions to ranges. Added unit tests.
Prefix calls to mismatch to stay compatible with C++14.