COMPUTER STUDIES OF BEAM DYNAMICS IN A PROTON LINEAR ACCELERATOR WITH SPACE CHARGE