Algorithm for comparison of 3D scanpaths in virtual reality