Data structure learning