Louisville basketball claws back to take down Memphis 87-78