Build a truth table based on the number of variables given