fix: heuristically choose correct function for minors
add: idKeepFirstK() in ideals.cc
chg: rewrite idDelEquals based on qsort()
chg: incorporate some suggestions by Hans
Merge pull request #249 from steenpass/minor

Minor