generate array with random numbers; bubble sort; draw rect