Ruby implementation for standard data structures