Added profileMatrix class