Feature/refactoring

Refactoring strategy for Fortran code with inefficient data access pattern.