corrected multiplication , still gives error but output seems to indicate driver.c is inconsistent w matlab output