reusing scratch memory
fixed sgemm batch pointer bug