Algebras in matrix spaces with displacement structure