added new solution for 1000 nodes