Array: bubble sort cpp + finding k largest elements