Balance chemical equations via integer gaussian elimination