Select_optimal_blocks