Added matrix multiplication cost finder