Data structure and algorithm classic exercises