In the figure given, AB is a diameter of a circle and CD is perpendicular to AB; if AB=10cm and AE=2cm, then what is the length of ED?