wrote algorithm
wrote the output function
added tex files for homework questions. did first question