Modeling realistic earth matter density for CP violation in neutrino oscillation