Adds upper and lower triangular forms