(HEVC/Research) Convert to mono-dimension arrays.
(HEVC/Research) Merge duplicated functions of SelectCU.
(HEVC/Research) Clean indentation of SelectCu.