deleted sqrtTest, finished partB, but not the most efficient. still good though