A variable ULX and possible IMBH candidate in M51a