added minimum eigenvalue func for use with corners