First attempt at MatchBinning