merged both decimal to binary and vice versa functions