tail: added size suffixes handling

Rust beginner here, any comments welcome.
Can you change this to return a `u64` and adjust the other places that use `uint`?