Include bubble sort for php and javascript