added new function binToArr in test.c. can correctly convert binary values into an array. this will be used for hamtest.c