[FEATURE] restructured and added classes CriticalSection, Condition
[FEATURE] moved Serializer and Resource Pool to separate headers