add memory allocation for feature search
Merge pull request #676 from sijchen/fme_merge54

[Encoder ME] add memory allocation for feature search