Algorithmic trouble

It sounds to me like you are doing absolutely nothing wrong! The intermediate algorithms are hard!

Here’s some previous discussion about them; you are definitely not alone: