Data Structure implementations in perl