Implemented sparse indices