Updating OmegaTip function. Now the Omega matrix is calculated correctly