fix tests in master
add implementation of pair.js
add tests for pair
Merge branch 'master' into solutions