added part of sorting
bubble-sorted array