algorithms to find rr lyrae and cepheids that are components in binary systems