Manhattan distances implemented.