the problem of free(voter) is yet to be solved. continue test for simple inputs first before moving on
free() issue is solved, seems working fine in processing data input