Classification and retrieval of thoracic diseases using patch-based visual words: a study on chest x-rays. (10th March 2020)