I think this would work, it's difficult though: First off, you should convince your mind (your heart is not going to get this easily) that you should stop loving. Now that you know you should do that, whenever you find yourself thinking about that person, just change your thoughts. Resist the tempts to go somewhere that he shows up, or do something in order for him to like you (I'm not saying you be mean to them :) ). Set a goal in your life and go after it. Gradually, your heart will get torn off from them :) Best of luck!
refill the space by making new friends , hoppies , studing , working travelling & visit your relative have new mind by new thoughts listen to inspire songs avoid any any any thing related to that person even if mutual friends ...... avoid any thing take you back to the memories
if you applies this for long period you'll get rid of you pain if you remember again