manifolds: Add custom complex number math library.

Need to benchmark, but this may offer some performance increase.