Fix a matrix match bug
Prevent out of bounds
Apply patches to yadev2
Reduce parameter dimension for optimization
Optimized YaDE