(HEVC/Research) Code cleaning.
(HEVC/Research) Readd rpsPoc to support long term reference frame.
(HEVC/Research) Fix buffer index management.