algorithm and data structure tests