Implemented "Generation array" dialog.
Implemented bubble sort
Fix bugs.