some optimalizations + better mutation in genetic