refactored showPointCloud to for shorter code. Implemented NanFilter::copy<T>() function