While we describe the algorithm S in the context of training it to detect faces, it will be understood that the same algorithm can alternatively be trained to detect cars, cakes, and other moderately-variable objects such as birthday and wedding cakes.