Implement cascaded multi-indexes table.

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>