Computing the Karcher mean of symmetric positive definite matrices