Check for sorted string if it already exists
if ( tempString not in store ) : NEW_LINE INDENT temp_vec = [ ] NEW_LINE temp_vec . append ( vec [ i ] ) NEW_LINE store [ tempString ] = temp_vec NEW_LINE DEDENT else : NEW_LINE