Never put an answer in the question, that's simply not what it's for.
You can answer your own question though, and if you found a good different solution, please do!
Whether you should unaccept the answer you accepted though, and accept your own?
That's for you to decide, are you sure it's better? I personally would be reluctant to assert so until and unless if gathers at least a significant number of upvotes on its own.
It's just that unaccepting an answer feels like not having properly decided before, and being capricious, even though it isn't. Also, I might be biased about my own work, or at least blind to (some) of it's flaws.