Some important data structures implemented using ruby arrays