PSR compliance
Reimplemented LinkedList::sort() to use a real in-place merge sort (fixes #15)