Portfolio Indexing: Theory and Practice