Homework 5. GPU multiplication working on rectangular matrices