Changed bit array representation. Have not changed tests yet