Some data structure n algo programs in ruby