added simple function to compute HX + HY - HXY information using nearest neighbors in matlab