Add bounding box calculation and other function in calculations.py

What is the goal or the usage of vertex in 4 dimensions. I realize this function for 2d or 3d vertex