Update algorithms.js

Added bubble sort algorithm