This is to store the workings on all the ideas came across several programming langauges.