stream() method for all collections