finished what ever i was doing last time except need to do for n=100, also need to output to some file