solves k.p method by FDM