added outOfWorkspace flag to IK functions