My fork of the original matKAM code from www.loria.fr/~aliutkus/kam/