Learning Features and their Transformations by Spatial and Temporal Spherical Clustering