Added the implementation of the problem 4.
Marking the implementation of the problem 4 as working and fast.
Added the implementation of the problem 6.
Added the imlpementation of the problem 7.