Fixed numerous bugs in Gauss

Including: 
Finding pivot, previously broke for non-square matrices.
Fixed rounding of pivot elements to 1.
These previously threw ArrayOutOfBoundsException.