Median integer stream Java