Add utility function to create truth tables