Numerical investigations on the chaotic behaviour and the supperssion of chaos in Nd YAG and semiconductor lasers