comparison of NxlgN graph
more about functions