A Novel S-Based Symplectic Algorithm for Tracking With Space Charge