[New] added many querying methods to the ElementMap interface

Implemented it in the InMemoryMap abstraction