smush pairs implementation + tests