implemented lower, higher, between
added remainder, fixed testcases