finished implementation of variable length integer