Best solutions for Data Structure 2