Retrieval v1

implemented retrieval indexing and similarity assessment
not tested
todo: implement weight assessment