Added a simplistic VarInt implementation, thanks Joe Z