homework assignment 1 analysis of algorithms 2114399