Some common and popular sorting algorithms implemented in PHP