Change matematica.c

Add parallel allocation for "Grade".
Change way to calculate "x" and "y" values.

Signed-off-by: Gustavo Toshi Komura <gtk10@c3sl.ufpr.br>