added hierarchical cache pseudocode in applications.md