Max Samukha wrote: > Here is a non-template implementation that should fix the problems (it > is a template but only formally): Thanks, I've incorporated it.