Add mergesort version for sorting linked list

Signed-off-by: Mahavir Jain <mahavirpj@gmail.com>