Factorize code to extract expr matrix from gdt table
Implement interpolation functions for tables
Modify gdt histogram to accept expressions