added some sychronization (for insertion and searching) still bugged