Added CSIGN, SWAPalpha and Berkeley gates and simplified base case of other gates

Added CSIGN, SWAPalpha and Berkeley gates and simplified base case of other gates.