Fixing attribute indexing in NaiveBayes

Signed-off-by: Olivier Van Laere <vanlaere@yahoo-inc.com>