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.  

Added this to comments.