basic implementation of sierpinski triangle