*Some for loops are a bit speeded up.
*Some bug in zhsmatrix are fixed.
Authored by: yonishi 2013-11-16
Parent: [r175]
Child: [r177]