Just return result matrix here:

```java
return result;
```