added vector support for visualization
exchanged linked list to vector, wrote resampling method.
should be working now.