more bugs in tim sort solved.

now compiles and runs but has a wrong result.
Some more bugs tweaks done for today