Some templates for algorithm and data structure