implemented metric inverted index (note that currently it doesn't support the maximum position difference feature)
small fix in metric inverted index