ECC Library for CS290G