public int uniquePaths(int m, int n) {
    	int tbl[][] = new int[100][100];
    	for (int i = 0; i < n; i++)
    		tbl[0][i] = 1;
    	for (int i = 0; i < m; i++)
    		tbl[i][0] = 1;
    	
    	for (int i = 1; i < m; i++)
    		for (int j = 1; j < n; j++)
    			tbl[i][j] = tbl[i-1][j] + tbl[i][j-1];
    	
    	return tbl[m - 1][n - 1];
    }