working on conversion from elements of the ring to binary and vice versa