SP hints at BJP alliance for UP