Added a pragma to disable some warning. Also changed the names of my first and last pointer to head and tail.