submission, things work for square invertible matrices, so LGTM