Computer Simulation of Segmented Mirrors for large Optical Telescopes