add a not-so-perlish bubble sort
2.pl