fixed a linear algebra mistake in multiply().