Ab-initio melting curve and principal Hugoniot of tantalum