more vectorization in algorithms + vertical kernel option