Added the Hamming metric and made appropriate
changes to the Metric interface.