Add algorithm for mergesort

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