scheduling algorithm pseudocode

this is just so everyone can see what we worked on. study it if you
like. find problems. etc.