toolkit module finished (compiled but untested)

- toolkit module upgrade finished (changed all to functions if possible,
and use size functions to declare dependent arrays (shape doesn't work
on declaration))

- included the extract procedure in tri_element module

- modified the tri_shape subroutine