verify_inputs_EMD function

Verify the inputs to the earthmover's distance problem