extract Algo_CB_Split into its own file