Class representing complex numbers and performing common calculations thereon