implemented cityblock distance and his test