kth smallest contiguous sum in an array