User boolean instead of integer in bubble sort check flag