data structures in pure ruby