TypeScript implementation of Koch Snowflake