Implement Soundex algorithm