Added bruteforce algorithm to merge groups, which are near enough to each other to be considered the same group and filter groups, whose size is < 4