Different Algorithm for compute_initial_probabilities