Online Context Learning for Socially-compliant Navigation