added visualization function for 2d pointset