Improved brush grouping algorithm
Made AABB immutable
Updated version