A Classification approach towards Unsupervised Learning of Visual Representations