Mri Simulation Using The K Space Formalism