func bub sort