#2119 First version of CIndexFeatures.
IndexFeatures bug fixed and add unit test.
Code style modified.
Merge pull request #2120 from pl8787/indexfeatures

#2119 Add CIndexFeatures