start of Double Metaphone function
initial cut of Double Metaphone algorithm
renamed length variables (meaning maximum returnable length) to maxlength