Created an adhoc "macro" system for lua and
implemented a permutation function using it