Added ConvtoDec function

ConvtoDec converts a base n integer in the range of ( 1 - 9) to base 10.