Made ChartUtil more generic.
Some change of hard coded Gauss Method. but Gauss method is not working
well.