Yes, it's cheating. If you are still having thoughts about your ex it is totally unfair to your current bf.
Sometimes it takes years to get over an ex. Sometimes you never do.
If there is not something about your ex that you can't deal with such as; honesty, loyalty, dependability, character, drinking or drugs then I would suggest that you save yourself and your current bf a lot of angst and go back to your ex.