add #to_json

add single elimination 256, 512, 1024 templates
add basic specs to check that 256,512 and 1024 generation doesnt raise exceptions