Implemented Shor's algorithm in Python 3.X using state vectors