Preferential growth: solution and application to modeling stock market