Completed dynamic 2D table implementation (Untested)