Ab-initio calculations on melting of thorium