Homework 4 (Fixed bug in 4_5)

- Found local min and max and then used mutex for synchronization with global max and min


last check homework 4:
https://github.com/marozau/cpp_craft_0314/pull/229