add src of bubble sort algorithm
modify bubble sort so that it can support compare wqfunction