Manhattan and Hamming functions working.