A Critical Path Approach to Analyzing Parallelism of Algorithmic Variants. Application to Cholesky Inversion