Splitting array into k fragments to minimize the largest sum