add radio button to chose algorithm