Manhatten Distance working