Rename some vars in SortExternal.

Use "buffer" instead of "cache", plus "buf_max" instead "cache_max",
etc.
Rename some methods in SortExternal.

Replace "cache" with "buffer" in a few method names.
Update SortExternal docs with new terminology.

Modify comments and docs to use "buffer" instead of "cache".