Practice algorithms and data structs (c++ and ruby)