WIP: grad desc on matrix test as alternative