simple grasp algrithom