added note on quadratic time algorithms