Automatic classification of histopathological diagnoses for building a large scale tissue catalogue