$C^*$-algebras associated with algebraic correspondences on the Riemann sphere