Compile with: $ make Run with: $ lab <basestring> <permutation_size> example: $ lab AABBC 3 gives: AAB AAC ABA ABB ABC ACA ACB BAA BAB BAC BBA BBB BBC BCA BCB CAA CAB CBA CBB