java implementation for some common stream algorithms