Implemented 1-D forward and reverse methods for complex numbers using
data type Complex.