Calculate weighted score of trajectories.
Use Set instead of Array to store LPToInce