Hinduism, Buddhism, Janaism and Logic