Joint Optimization of an Autoencoder for Clustering and Embedding