starting multiplication code.
Had to come back to having device functions in same file, because when they were in a separate file, performance fell a lot.