Implemented query method on VariableElimination.

Fixed bug in factors where evidence was not being incorporated to
the correct variable.