Tasks 2_4 and 2_5.

Also I modified task 1_3 to use BFS (now named as 1_3_BFS)