squeeze out some more speed by using pairs instead of new structs

This pull request speeds up the Racket version a little more by using pairs instead of defining new structs.