Implement HTOP algorithm

- Implement Truncate function from RFC 4226
- Code and Count type aliases