Implementation of DD4hep extensions

Summary
Added alignment functionality and thread safety. (Task 3.2)