Create autotopic.c

First version of autotopic.c