Calculate Levenshtein's distance

Implemented on PHP for OLIMEX Weekend Programming Challenge - week #69.