Data Structures implementation on Ruby