Added matrix trace and updated history and readme