matlab code for testing KLT