Author: Sam Short
basing from quarx's jordan jb kernel