Pyramid Algorithms by Ron Goldman