use dynamic programming to store catalan number