Write basic algorithms

	write algorithms for working with number theory
	backtrack algorithm realization