moved PIndexImpl definition to pindex_impl.go