Implemented __pow__.