Made list more flexible using void pointers. Working on typed lists