Add utility function to pad vector array to 3d for visualisation