moved difference function into header so it can be used elsewhere
moved typedef to group_by_k.h so it is more useful outside of main
idealFile in utils so it is useful outside of main.cc
renamed runSimilarity to runDifference, since it actually measures the difference
compute the number of ideals to try before successfully factoring an integer n