Implemented Shor's algorithm

Implemented Shor's algorithm and added the controlled-phase gate CRK.