program for data structure problems