fix: manhattan distance calc