extract Algo_CTB_QScale into its own file