updated rref, fixed bugs on IE