New positioning system for elements
Vector helper functions added