implemented qba heurtic for pattern matching; don't do splits for which
lead to same result for all cases