Added sorting implementation for bubble and insertion sort