The ideas of history of Thomas Carlyle and John Stuart Mill