Optical Detection of Clusters of Galaxies