trying different algorithems on a simple problem