added method that reads data in form of dictionary to produce dictionaries that map filled indices for users and for items