Array vs Stream—”to heap or not to heap ”