move varint into its own package