Computing Earth Mover's Distance with Entry/Exit Fee Cost Matrix