refactoring
insert is back
Fix seg fault
Add implementation of shared_mutex
Fix compilation: take LeafEntry as argument and cast it to Entry
delete shared_mutex
Add locks for search and insert