Allocate __shared__ memory inside bounded_merge