add is_permutation? convenience method