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