Added some algorithms from Twitter commons
Added getters for the Pair class