Store path costs as integers

Doubles are too silly...