Got rid of length_from_6bit_array method and instead generalized array_of_8bits_to_int into array_of_bits_to_int