To some problems of the optimalization of the educational process at the grammar school