Measurement of SUSY masses via cascade decays for SPS 1a