Added bn_to_bin and bn_from_bin.