Add KnapsackCipher tests and add to_bi_a to String