From Bayesian Inference to MCMC and Convex Optimisation in Hadamard Manifolds