Added gso using double matrices