[Encoder ME] add function pointer for search methods

reviewed at https://rbcommons.com/s/OpenH264/r/275/