CS data structures using ruby