finished ComputeFeatures_debug.m