cleaned up directory. added hw3 algorithm