Playing around with Swift; made my own sorting algorithm #1