Change function "residuo"

Change grade[ 1 - i][ j].valor by grade[ i - 1][ j].valor

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