public static int taxiCab(int color1, int color2) {

        int dRed = Math.abs( ((color1 & RED_MASK) >> 16) - ((color2 & RED_MASK) >> 16));
        int dGreen = Math.abs( ((color1 & GREEN_MASK) >> 8) - ((color2 & GREEN_MASK) >> 8));
        int dBlue = Math.abs( (color1 & BLUE_MASK) - (color2 & BLUE_MASK));

        int dist = dRed + dGreen + dBlue;

        return dist;

    }