Algorithm for the formation of an individual learning path