Changed Matrix.getElements() so it implements Iterable<Matrix.Element>