Adding simple filter

- Speeds up computation by discarding regions that cannot be joined