Multi-Instance Dimensionality Reduction