Add comments for memory-related reduce operations.

Resolve #1000. 
I found this documentation useful myself. Since when I was choosing sorting approaches, I would like to know which uses a in-memory heap and which uses external sorting.  

Sure, this makes the comments further clearer.