tail: added size suffixes handling

Rust beginner here, any comments welcome.
K = 1 << 10
M = 1 << 20
...

The function probably should return u64 instead of uint.