Implementation of between