added fortran style stride calculations and matrix multiply validation