+ added code to estimate rank of A,U stacked matrices