Breakout matrix and reverse complement functions into sonlib, adding
skeleton for tests of pinch graph stuff.