Implemented buuble sort