added test, fixed combinations, added `length' feature to permutations