Add (hollow) cube detection algorithm.