Algebraically stable two-step Runge-Kutta and continuous methods for ordinary differential equations