Added power of two algorithm, row manipulator, and column manipulator with tests