Performance improvements to ToVector and RegionGroup
Merge pull request #552 from lossyrob/optimize/ToVector

Performance improvements to ToVector and RegionGroup