always initialize first and last

With CFLAG -O and -Wall this gives a "maybe uninitialized" warning
otherwise.
Merge pull request #5 from JonnyJD/first_last

always initialize first and last