Make bubbleSort modify slice in place

A version that acts on a copy will follow