Detailed explanation of the mathematical principles in Word2Vec