add text index and color histogram index

merge index branch into master branch