added initialization of **A and *degs, lopsided init should no longer segfault