Firt implementation if IntList. Array pointer not working.