Minor code modernization & readibility
- Added "override" qualifier to getMeshElement() and getMeshElementByType() on subclasses to ensure they override the default implementation (which returns nullptr) and improve readibility
- Replaced some index loops by range-based for, for readability purpose.