The global code refactoring and optimizing

Added class AsSort (sorts the array elementsby value from high->to low)
Comments translated to english
Other fixes