Matrix manipulation and computation library