An Automated Search for Compact Groups of Galaxies