linked and compiled n^2 test program