create a file with a bubble sort method on Ruby