Removed all the bugs. Removed unneccessary tests from helper and modified upper_triangle.