implemented NURBS curve basis functions A2.1, A2.2 from pages 68, 70 of 'The NURBS Book'