quadratic first commit

quadratic first commit