added function to translate code point to binary representation