added c++ file of permudisArma code