added functions, implemented functions, seems to work (bubble sort)