[Encoder ME] add memory allocation basics for FME
Merge pull request #609 from sijchen/fme_merge32

[Encoder ME] add memory allocation basics for FME