factored out a pad function
added basic cases for selection
Merge branch 'master' of github.com:michaelfeathers/jop