basic implementation of sierpinski pyramid