First draft of implementation of the dicision taking algorithm and adaption of SMV function
New functions validacaoCruzada, fixaLimiteQ, treinaValida implemented or edited. Comments added and/or edited. Minor changes.