Update algebratypes.cpp

Added constructor useful for doing inverses