Split complex.h

Split complex.h into complex.cpp and complex.h.