Create scheduler.c

Starting point for scheduler