Added ToBytes trait and implemented it for u8, u32 and BigUint