Fix incorrect dot position
Promote head and tail as class fields

Also: use a Node record to increase performance.
Fix Travis options