Move the functions outside the ComplexNumber class.

Signed-off-by: CyberZHG <CyberZHG@gmail.com>
Rearrange the file distribution of ComplexNumber.

Signed-off-by: CyberZHG <CyberZHG@gmail.com>