Add few recognition argoritms for triangles and squares