Implements Varint in C