Added commands for \matrix and \determ
They use optional parameter for the size of grid.
For example:
  \matrix[3,2]{a}{b}{c}{d}{e}{f}
  \determ[2,3]{a}{b}{d}{e}{g}{h}
cursor.js was changed to support optional parameter and
variable amount of normal parameters.