Added implementation of entity-related memory in MemMap

Also added corresponding test cases.
Added methods to add/recall entity-related memories in python
Renamed filter to entity_filter in python to avoid a conflict

filter name conflicts with built-in filter method and causes
confusion