created helper.rb and implement selection sort