A simple ray caster in C