implemented dec2oct function