Added functionality in main to compute the WER for 4.3b).
Edited the distance function.