Engineering compact dynamic data structures and in-memory data mining