replaced k[Nm] with new Complex(Nm), and delete; also changed several 2 * k to 2.0 * k since for some silly reason you can't multiply an int by a complex.