Add basic cross search functions and its unit tests
Merge pull request #586 from sijchen/me_merge72

[Encoder ME] Add basic cross search functions and its unit tests