Linear Algebra: Fixed matrix mult() to work with scalars