Assignment one for Coursera Stanford  Algorithm COurse