corrected the error on pso.rb. Normal pso is giving the same results of the artilce.  Now i have to make pso_type to give the same results as in the article.