sped up binmat function by shifting dependence on kbitl to itertools.product and fixed major bug in contextvert that was given even number of -1s