Efficient content-based retrieval of motion capture data