Fixed remove.pairs()-- when removing n-1 pairs it would return a vector, instead of a matrix.