add logic for in-memory joins
remove original index key from correct result set
return matched results along with indexes
update tests to pass new function signature and return results