Solve for A A/b=d