A LONG TERM LEARNING SCHEME IN CBIR SYSTEMS BY DEFINING SEMANTIC TEMPLATES USING INFORMATION OF SIMILARITY-REFINEMENT BASED SHORT TERM LEARNING