Methods of multiplication of natural numbers in memory