Trying out various algorithms