Change diff algorithm to histogram for experimentation