2D Matryoshka Training for Information Retrieval