changed filter algorithm for middle - closest single vector wins decision

difference vector for both test colors and both ends with the minimum
distance - wins.