working on permutation generator and vm compiler