Melody Searcher

I’d like to try my hand at composing, but since I tend to memorize melodies on an almost subconscious level, my previous attempts have mostly ended up with me lifting entire songs wholesale.

So before I try again and end up with an army of lawyers beating on my door, is there some way to do a melody search on tunes that I have percolating in my head?