testing some algorithms