Added an implementation of generic lists (java style)