Fixed OrthoBasis bugs

Got the ROI mask to work and corrected some problems with the
Gram-Schmidt procedure. OrthoBasis is now functional.

DSB