RPI' algorithm lab