Performance improvements and some cosmetic changes

Hi bashor,

thanks for the work you did. I will merge in your cometic changes as they really improve the code a lot. As what the performance improvements are concerned I want to stick to an approach where all the Havlak language-specific versions use ArrayLists and LinkedLists at the same places in the code in order to make all languages start from the same endowment position for the performance comparison.