Algorithm tweaking and implemented same HR

Made logic to account for cars with same HR