Generic Self-Adjusting Tree Approach