Refreshing Data structure and algorithms