Added code for genration of the truth table using recursion