Update algebratypes.cpp

Added elementary operations