insert merge-index and skip/inter algo into encoder